package com.my.service.impl;


import com.my.mapper.CheckMapper;
import com.my.pojo.Check;
import com.my.service.ICheckService;
import lombok.Data;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@Data
public class CheckService implements ICheckService {
    private CheckMapper checkMapper;

    @Override
    public void addCheck(Check check) {
        checkMapper.addCheck(check);
    }

    @Override
    public List findCheck(Integer userId,String startDate,String enDate) {
        return checkMapper.findCheck(userId,startDate,enDate);
    }

    @Override
    public List<Map<String,Object>> countCheck(String departName,String startDate,String endDate) {
        return checkMapper.countCheck(departName,startDate,endDate);
    }
}
